/*
 * =====================================================================================
 *
 *       Filename:  SimpleHumanFactory.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/11/2022 01:02:01 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#include "SimpleHumanFactory.h"
#include "YellowHuman.h"
#include "WhiteHuman.h"
#include "BlackHuman.h"
#include <iostream>
using std::string;

CSimpleHumanFactory::CSimpleHumanFactory(void) {
}

CSimpleHumanFactory::~CSimpleHumanFactory(void) {
}

IHuman* CSimpleHumanFactory::CreateHuman(string classType) {
    if (classType.compare("CYellowHuman") == 0) {
        return new CYellowHuman();
    } else if (classType.compare("CWhiteHuman") == 0) {
        return new CWhiteHuman();
    } else if (classType.compare("CBlackHuman") == 0) {
        return new CBlackHuman();
    }
}
